Optional SDL-gfx.f

Requires Float-tools
Requires DLL-tools

Library SDL_gfx

CFunction: pixelColor (  dst,  x,  y,  color -- )
CFunction: rectangleColor (  dst,  x1,  y1,  x2,  y2,  color -- )
CFunction: boxColor (  dst,  x1,  y1,  x2,  y2,  color -- )
CFunction: lineColor (  dst,  x1,  y1,  x2,  y2,  color -- )
CFunction: circleColor (  dst,  x,  y,  r,  color -- )
CFunction: arcColor (  dst,  x,  y,  r,  start,  end,  color -- )
CFunction: filledCircleColor (  dst,  x,  y,  r,  color -- )
CFunction: ellipseColor (  dst,  x,  y,  rx,  ry,  color -- )
CFunction: filledEllipseColor (  dst,  x,  y,  rx,  ry,  color -- )
CFunction: polygonColor (  dst,   vx,   vy,  n,  color -- )
CFunction: filledPolygonColor (  dst,   vx,   vy,  n,  color -- )
CFunction: bezierColor (  dst,   vx,   vy,  n,  s,  color -- )
CFunction: SDL_gfxBlitRGBA (  src,  srcrect,  dst,  dstrect -- )
CFunction: SDL_gfxSetAlpha (  src, a -- )
CFunction: rotateSurface90Degrees (  pSurf,  numClockwiseTurns -- surface )
CFunction: rotozoomSurfaceXY (  src, double angle, double zoomx, double zoomy,  smooth -- )
-? : rotozoomSurfaceXY   >r 3df r> rotozoomSurfaceXY ; -? cstyle
cFunction: rotozoomSurfaceSizeXY (  width  height  double angle  double zoomx  double zoomy    dstwidth  dstheight -- )
-? : rotozoomSurfaceSizeXY   2>r 3df 2r> rotozoomSurfaceSizeXY ; -? cstyle

\\ Test
variable w variable h
128 256 12.0e 2.0e 2.0e w h rotozoomSurfaceSizeXY
